package com.shanlitech.et.mapper;

import com.shanlitech.et.model.SpeechRecord;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface SpeechRecordMapper {
    int deleteByPrimaryKey(Long speechId);

    int insert(SpeechRecord record);

    int insertSelective(SpeechRecord record);

    SpeechRecord selectByPrimaryKey(Long speechId);

    int updateByPrimaryKeySelective(SpeechRecord record);

    int updateByPrimaryKey(SpeechRecord record);

    List<SpeechRecord> findByGidAndtStartLess(@Param("gid") Long gid, @Param("t_start") Long t_start, @Param("count") Integer count);

    List<SpeechRecord> findByGidsAndtStartLess(@Param("gids") Long[] gids, @Param("t_start") Long t_start, @Param("count") Integer count);
}